package com.wangshb.upms.service;

import com.wangshb.upms.core.tree.TreeNode;
import com.wangshb.upms.entity.UpmsPermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

public interface UpmsPermissionService extends IService<UpmsPermission> {

        Page<UpmsPermission> findPage(int pageNo, int pageSize, UpmsPermission condition);


        List<UpmsPermission> findList(Page<UpmsPermission> page, UpmsPermission condition);


        Long addUpmsPermission(UpmsPermission upmsPermission);


        void delUpmsPermission(UpmsPermission upmsPermission);


        void updateUpmsPermissionWithLock(UpmsPermission upmsPermission);


        List<TreeNode> findForPermissionTree();

        UpmsPermission findOne(UpmsPermission upmsPermission);
}
